<template>
	<view class="lineHeight" :style="{'height':px(height)}"></view>
</template>

<script>
	export default {
		props: {
			height: {
				type: Number,
				default () {
					return 20
				}
			},
		},
		methods: {
			px(num) {
				return uni.upx2px(num) + "px"
			}
		}
	}
</script>

<style lang="scss">
	.lineHeight {
		background-color: #f1f1f1;
		width: 100vw;
		margin: 0;
		padding: 0;
	}
</style>
